/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cms.entity;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 键值对Entity
 * @author leo
 * @version 2017-03-01
 */
public class DataType extends DataEntity<DataType> {
	
	private static final long serialVersionUID = 1L;
	private String keyid;		// keyid
	private String typeid;		// typeid
	private String value;		// value
	private String number01;		// number01
	private String number02;		// number02
	private String text01;		// text01
	private String text02;		// text02
	
	public DataType() {
		super();
	}

	public DataType(String id){
		super(id);
	}

	@Length(min=0, max=8, message="keyid长度必须介于 0 和 8 之间")
	public String getKeyid() {
		return keyid;
	}

	public void setKeyid(String keyid) {
		this.keyid = keyid;
	}
	
	@Length(min=0, max=4, message="typeid长度必须介于 0 和 4 之间")
	@NotEmpty
	public String getTypeid() {
		return typeid;
	}

	public void setTypeid(String typeid) {
		this.typeid = typeid;
	}
	
	@Length(min=0, max=50, message="value长度必须介于 0 和 50 之间")
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	public String getNumber01() {
		return number01;
	}

	public void setNumber01(String number01) {
		this.number01 = number01;
	}
	
	public String getNumber02() {
		return number02;
	}

	public void setNumber02(String number02) {
		this.number02 = number02;
	}
	
	@Length(min=0, max=200, message="text01长度必须介于 0 和 200 之间")
	public String getText01() {
		return text01;
	}

	public void setText01(String text01) {
		this.text01 = text01;
	}
	
	@Length(min=0, max=200, message="text02长度必须介于 0 和 200 之间")
	public String getText02() {
		return text02;
	}

	public void setText02(String text02) {
		this.text02 = text02;
	}
	
}